package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreStockInitBillEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * 库存期初导入单 更新对象
 *
 * @author fs 2021-03-04
 */
@Data
@ApiModel("库存期初导入单-更新对象")
public class StoreStockInitBillUpdateDTO extends StoreStockInitBillSaveDTO{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    private Integer id;
    @ApiModelProperty(value = "子数据")
    private List<StoreStockInitBillDetailUpdateDTO> details;











    public StoreStockInitBillEntity convertEntity() {
        StoreStockInitBillEntity target = new StoreStockInitBillEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
